package com.itheima.prepare;

import java.util.Scanner;

public class Method02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数判断是否为偶数,输入0退出");
        while (true) {

            int num1 = sc.nextInt();

            if (num1 != 0) {
                isevenunber(num1);
            } else {
                System.out.println("感谢使用");
                return;
            }
        }
    }

    public static void isevenunber(int num) {
        if (num % 2 == 0) {
            System.out.println("偶数");
        } else {
            System.out.println("基数");
        }
    }
}



